<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  
</head>

<body>
  <div id="app">
    <div v-for="(cate,index1) in arr">
      <h3>{{cate.title}}</h3>
      <ul>
        <li v-for="(item,index2) in cate.items">
          <h4>{{item.name}}</h4>
        </li>
      </ul>
    </div>
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        arr: [
          {
            title:'手机',
            items: [
              {
                name:'手机1',
                price: 10
              },
              {
                name:'手机2',
                price: 10
              },{
                name:'手机3',
                price: 10
              }
            ]
          },
          {
            title:'电脑',
            items: [
              {
                name:'电脑1',
                price: 10
              },
              {
                name:'电脑2',
                price: 10
              },{
                name:'电脑3',
                price: 10
              }
            ]
          },
          {
            title:'家电',
            items: [
              {
                name:'家电1',
                price: 10
              },
              {
                name:'家电2',
                price: 10
              },{
                name:'家电3',
                price: 10
              }
            ]
          }
        ]
      }
    })
  </script>
</body>

</html>